home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_metamail.idb / usr / freeware / catman / u_man / cat1 / metamail.Z / metamail
Encoding:
Text File  |  1999-07-16  |  27.8 KB  |  661 lines

  1.  
  2.  
  3.  
  4.      MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))      BBBBeeeellllllllccccoooorrrreeee PPPPrrrroooottttoooottttyyyyppppeeee ((((RRRReeeelllleeeeaaaasssseeee 2222))))       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.       metamail - infrastructure for    mailcap-based multimedia mail
  10.       handling
  11.  
  12.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.       mmmmeeeettttaaaammmmaaaaiiiillll[-b] [-B] [-c    ccccoooonnnntttteeeennnnttttttttyyyyppppeeee ...] [-d] [-e] [-E
  14.       ccccoooonnnntttteeeennnntttteeeennnnccccooooddddiiiinnnngggg] [-f    ffffrrrroooommmm----nnnnaaaammmmeeee] [-h]    [-m mmmmaaaaiiiilllleeeerrrr----nnnnaaaammmmeeee] [-p]
  15.       [-P] [-r] [-s    ssssuuuubbbbjjjjeeeecccctttt] [-q] [-w] [-x]    [-y] [-z] [ffffiiiilllleeee----nnnnaaaammmmeeee]
  16.  
  17.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.       The _m_e_t_a_m_a_i_l program reads a "mailcap" file to determine how
  19.       to display non-text at the local site.  Every    mail-reading
  20.       interface needs to call metamail whenever non-text mail is
  21.       being    viewed,    unless the mail    is of a    type that is already
  22.       understood by    the mail-reading program. _M_e_t_a_m_a_i_l consults
  23.       the mailcap file(s) to determine what    program    to use to show
  24.       the message to the user.
  25.  
  26.       At a site where all mail reading interfaces have been
  27.       modified to call _m_e_t_a_m_a_i_l for    non-text mail, extending the
  28.       local    email system to    handle a new media type    in the mail
  29.       becomes a simple matter of adding a line to a    mailcap    file.
  30.       (Although this manual    page will discuss only mail, metamail
  31.       is equally useful in adding multimedia support to news and
  32.       bulletin board reading programs, assuming those programs
  33.       preserve the "Content-type" header or    some other indication
  34.       of the content type of the messages.)
  35.  
  36.       In general, users will never run metamail directly.
  37.       Instead, metamail will be invoked for    the user automatically
  38.       by the user's    mail reading program, whenever a non-text
  39.       message is to    be viewed.  This manual    page, therefore, is
  40.       directed not at end users, but at two    categories of readers:
  41.       those    who are    adding metamail    support    to a particular    mail-
  42.       reading program, and those who are adding lines to a mailcap
  43.       file.     The former need only to be concerned with the command
  44.       line syntax of metamail.  The    latter may
  45.        ignore the command line syntax, and need only be concerned
  46.       with the mailcap file    syntax,    as described in    a later
  47.       section.
  48.  
  49.       Note:     Metamail determines the type of a message using the
  50.       "Content-type" header, as defined in RFC 1049    and RFC-1341
  51.       (MIME).  However, using the -b and -c    options, metamail can
  52.       be made to work with mail that is not    in Internet format,
  53.       including X.400 messages.  Note also that metamail
  54.       automatically    decodes    mail that has been encoded for 7 bit
  55.       transport if the mail    includes a Content-Transfer-Encoding
  56.       header as specified by RFC-1341.  If data has    been encoded
  57.       via the "base64" encoding, it    will map CRLF to local
  58.       newlines for textual data, but not for other data, unless
  59.       instructed otherwise by a "textualnewlines" field in a
  60.  
  61.  
  62.  
  63.      Page 1                          (printed 5/3/99)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))      BBBBeeeellllllllccccoooorrrreeee PPPPrrrroooottttoooottttyyyyppppeeee ((((RRRReeeelllleeeeaaaasssseeee 2222))))       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))
  71.  
  72.  
  73.  
  74.       mailcap entry.
  75.  
  76.  
  77.      OOOOPPPPTTTTIIIIOOOONNNNSSSS
  78.       When called with no options or arguments, metamail expects
  79.       to receive an    RFC 822    format message on its standard input.
  80.       The following    options    can alter that expectation:
  81.  
  82.       ----bbbb      This option tells metamail that the message is not
  83.           in RFC 822 format, but instead is only the body of
  84.           the message (i.e. there are no message headers).
  85.           The use of -b    requires the use of -c.
  86.  
  87.       ----BBBB      This option tells metamail that the message is to be
  88.           displayed in the background, if it is    non-
  89.           interactive (i.e. it doesn't have the
  90.           "needsterminal" attribute in the mailcap file).  It
  91.           cannot be used with -p or -P.
  92.  
  93.       ----cccc <<<<ccccoooonnnntttteeeennnnttttttttyyyyppppeeee>>>>
  94.           This option tells metamail to    use the    specified
  95.           content type rather than the one in the headers, if
  96.           any.
  97.  
  98.       ----dddd      This option tells metamail not to ask    any questions
  99.           before running an interpreter    to view    the message.
  100.           (By default, metamail    always asks before running
  101.           almost any interpreter, if it    is running in an
  102.           interactive terminal and the MM_NOASK    environment
  103.           variable is not set.    However, it does not ask about
  104.           the content-type "text" -- that is, the default
  105.           value    for MM_NOASK is    "text,text/us-ascii")
  106.  
  107.       ----eeee      This option tells metamail to    "eat" leading newlines
  108.           in message bodies.  This is particularly useful for
  109.           MH-format mail.
  110.  
  111.       ----ffff <<<<aaaaddddddddrrrreeeessssssss>>>>
  112.           This option specifies    the name of the    sender of the
  113.           message.  Otherwise, this is determined from the
  114.           header, if possible.    This information will be
  115.           placed in the    environment to make it available to
  116.           any interpreters called by metamail.
  117.  
  118.       ----hhhh      This option specifies    that metamail is being used
  119.           for _p_r_i_n_t_i_n_g a message.  In particular, this means
  120.           that the normal mailcap "command" field will not be
  121.           executed, but    instead    the command specified in the
  122.           "print" field    will be    executed.  (If there is
  123.           nothing in the print field, the mailcap entry    will
  124.           be ignored and the search will continue for a
  125.           matching mailcap entry that does have    a print
  126.  
  127.  
  128.  
  129.      Page 2                          (printed 5/3/99)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))      BBBBeeeellllllllccccoooorrrreeee PPPPrrrroooottttoooottttyyyyppppeeee ((((RRRReeeelllleeeeaaaasssseeee 2222))))       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))
  137.  
  138.  
  139.  
  140.           field.)  The -h option automatically turns on    the -d
  141.           option.
  142.  
  143.       ----mmmm <<<<mmmmaaaaiiiilllleeeerrrrnnnnaaaammmmeeee>>>>
  144.           This option specifies    the name of the    mail program
  145.           that called metamail.     This information will be
  146.           placed in the    environment to make it available to
  147.           any interpreters called by metamail.
  148.  
  149.       ----pppp      This option specifies    that, if necessary, output
  150.           should be shown to the user one page at a time.  By
  151.           default, this    will cause such    output to be piped
  152.           through the "more" command, but the environment
  153.           variable METAMAIL_PAGER can be used to specify an
  154.           alternative command to use.  Note that one should
  155.           use -p rather    than piping the    output of metamail
  156.           through a pager, because some    interpreters called by
  157.           metamail might be interactive    rather than requiring
  158.           pagination.  Metamail    can tell whether or not    to use
  159.           a page r from    information in the mailcap file.  This
  160.           option cannot    be used    with -B.
  161.  
  162.       ----PPPP      This option is just like -p, except that it also
  163.           causes metamail to print "Press RETURN to go on" and
  164.           await    a RETURN after it has finished with the
  165.           message.  This is intended for use only when
  166.           metamail calls itself    recursively in a new terminal
  167.           window created only for that purpose.     This option
  168.           cannot be used with -B.
  169.  
  170.       ----qqqq      This option tells metamail to    be quiet.  By default,
  171.           metamail prints a few    key message headers
  172.           (controllable    with the KEYHEADS and KEYIGNHEADS
  173.           environment variables) and some other    informative
  174.           information, on stdout before    running    the
  175.           interpreter, but this    behavior is suppressed with
  176.           -q.
  177.  
  178.       ----rrrr      This option specifies    that it    is OK to run as    root.
  179.           By default, metamail refuses to run if the real or
  180.           effective user id is root.  You can get the same
  181.           effect using the MM_RUNASROOT    environment variable.
  182.  
  183.       ----RRRR      This option specifies    that the /usr/ucb/reset    should
  184.           be executed to reset the terminal state, before any
  185.           other    I/O activity.
  186.  
  187.       ----ssss <<<<ssssuuuubbbbjjjjeeeecccctttt>>>>
  188.           This option specifies    the subject of the mail
  189.           message.  By default,    this information is obtained
  190.           from the headers.  This information will be placed
  191.           in the environment to    make it    available to any
  192.  
  193.  
  194.  
  195.      Page 3                          (printed 5/3/99)
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.      MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))      BBBBeeeellllllllccccoooorrrreeee PPPPrrrroooottttoooottttyyyyppppeeee ((((RRRReeeelllleeeeaaaasssseeee 2222))))       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))
  203.  
  204.  
  205.  
  206.           interpreters called by metamail.
  207.  
  208.       ----wwww      This option tells metamail that instead of
  209.           consulting a mailcap file to decide how to display
  210.           the data, it should simply decode each part and
  211.           write    it to a    file in    its raw    (possibly binary)
  212.           format.  Depending on    the circumstances in which it
  213.           is called, metamail may derive the file name to use
  214.           from the message headers, by asking the user,    or by
  215.           generating a unique temporary    file name.
  216.  
  217.       ----xxxx      This option tells metamail that it is    definitely not
  218.           running on a terminal, no matter what    isatty() says.
  219.           This is necessary when metamail is actually running
  220.           on a pseudoterminal and isatty(3) returns TRUE but
  221.           there's really no terminal on    which to interact with
  222.           the user.  The same effect as    -x can also be
  223.           obtained with    the environment    variable MM_NOTTTY.
  224.  
  225.       ----yyyy      This option tells metamail to    try to "yank" a    MIME-
  226.           format message from the body of the message.    It is
  227.           useful when a    MIME-format has    been rejected by a
  228.           mail delivery    system that does not now how to    format
  229.           the rejection    in a MIME-compliant manner.  (For the
  230.           convenience of those who can't control how metamail
  231.           is called from their mail reader, this can also be
  232.           set with the MM_YANKMODE variable.)  If you use yank
  233.           mode on messages that    really ARE in MIME format, or
  234.           on messages that do not contain a MIME message
  235.            in the body,    the effects could be VERY strange.  It
  236.           won't    hurt you, but you won't    see anything very
  237.           useful, either.
  238.  
  239.       ----zzzz      This option tells metamail to    delete its input file
  240.           when finished.  The -z option    requires that a    file
  241.           name was given as an argument    to metamail, i.e. that
  242.           it is    not reading stdin.
  243.  
  244.       ----TTTT      This option is intended to be    used by    metamail
  245.           recursively, to turn off the effect of the
  246.           MM_TRANSPARENT environment variable.    It should only
  247.           be used when the metamail program restarts itself in
  248.           a terminal emulator window.
  249.  
  250.       FFFFiiiilllleeee NNNNaaaammmmeeee AAAArrrrgggguuuummmmeeeennnnttttssss
  251.           Any argument that does not start with    "-" is
  252.           interpreted as the name of a file to read instead of
  253.           standard input.
  254.  
  255.      UUUUNNNNRRRREEEECCCCOOOOGGGGNNNNIIIIZZZZEEEEDDDD MMMMAAAAIIIILLLL TTTTYYYYPPPPEEEESSSS
  256.       From time to time, metamail may tell you something like
  257.  
  258.  
  259.  
  260.  
  261.      Page 4                          (printed 5/3/99)
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.      MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))      BBBBeeeellllllllccccoooorrrreeee PPPPrrrroooottttoooottttyyyyppppeeee ((((RRRReeeelllleeeeaaaasssseeee 2222))))       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))
  269.  
  270.  
  271.  
  272.       **** Unrecognized mail type: 'smell-o-vision'.  Writing to
  273.       file /tmp/metamail.1234 ****
  274.  
  275.       What this means is that your are trying to read a message
  276.       that contains    data that is marked as being in    "smell-o-
  277.       vision" format, but that your    site has not yet configured
  278.       metamail to properly display that type of data.  In the
  279.       general case,    such configuration is accomplished using the
  280.       mailcap file mechanism, as described in the next section.
  281.  
  282.       For unrecognized types, metamail simply removes all header
  283.       and encoding information from    the data, and writes it    out to
  284.       a temporary file.  (If running interactively,    it will    give
  285.       you more alternatives    -- writing it to a temporary file,
  286.       viewing it as    text, or jus skipping it.)  It is up to    the
  287.       user to delete such files when he or she is through with
  288.       them.
  289.  
  290.  
  291.      TTTTHHHHEEEE MMMMAAAAIIIILLLLCCCCAAAAPPPP FFFFIIIILLLLEEEE((((SSSS))))
  292.       The primary purpose of the metamail program is to allow
  293.       diverse mail reading programs    to centralize their access to
  294.       multimedia information.  If all the mail reading programs
  295.       call a single    program    to handle non-text mail, then only
  296.       that program needs to    know about the diverse types of    non-
  297.       text mail that might be received.
  298.  
  299.       The metamail program is made more flexible in    this role
  300.       through the mechanism    of one or more "mailcap" files.     The
  301.       purpose of the mailcap files is to tell metamail what
  302.       program to run in order to show the user mail    in a given
  303.       format.  Thus    it becomes possible to add a new media type to
  304.       all of the mail reading programs at a    site simply by adding
  305.       a line to a mailcap file.
  306.  
  307.       Metamail uses    a search path to find the mailcap file(s) to
  308.       consult.  Unlike many    path searches, if necessary metamail
  309.       will read _a_l_l    the mailcap files on its path.    That is, it
  310.       will keep reading mailcap files until    it runs    out of them,
  311.       or until it finds a line that    tells it how to    handle the
  312.       piece    of mail    it is looking at.  If it finds a matching
  313.       line,    it will    execute    the command that is specified in the
  314.       mailcap file.
  315.  
  316.       The default search path is equivalent    to
  317.  
  318.       $HOME/.mailcap:/usr/local/etc/mailcap:/usr/etc/mailcap:/etc/mailcap:/etc/mail/mailcap:/usr/public/lib/mailcap"
  319.  
  320.       It can be overridden by setting the MAILCAPS environment
  321.       variable.  Note: Metamail does not actually interpret
  322.       environment variables    such as    $HOME or the "~" syntax    in
  323.       this path search.
  324.  
  325.  
  326.  
  327.      Page 5                          (printed 5/3/99)
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.      MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))      BBBBeeeellllllllccccoooorrrreeee PPPPrrrroooottttoooottttyyyyppppeeee ((((RRRReeeelllleeeeaaaasssseeee 2222))))       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))
  335.  
  336.  
  337.  
  338.       The format of    mailcap    files is explained in the manual entry
  339.       for mailcap(4).
  340.  
  341.  
  342.      NNNNOOOONNNN----AAAASSSSCCCCIIIIIIII HHHHEEEEAAAADDDDEEEERRRR FFFFIIIIEEEELLLLDDDDSSSS
  343.       Metamail has rudimentary built-in support for    the emerging
  344.       Internet standards for non-ASCII data    in mail    headers.  What
  345.       this means is    that such data will be recognized, decoded,
  346.       and sent to the terminal.  This behavior may be more or less
  347.       reasonable, depending    on the character set in    the header
  348.       data and the capability of the user's    terminal, but it will
  349.       rarely be any    worse than showing such    data in    its encoded
  350.       form.
  351.  
  352.      EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT
  353.       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL____TTTTMMMMPPPPDDDDIIIIRRRR
  354.           If set, this variable    overrides "/tmp" as the    name
  355.           of the directory in which metamail and associated
  356.           programs will    create temporary files on UNIX.
  357.  
  358.       MMMMMMMM____NNNNOOOOAAAASSSSKKKK
  359.           If MM_NOASK is set to    "1", metamail will never ask
  360.           the user for confirmation before running an
  361.           interpreter.    Otherwise, MM_NOASK may    be set to a
  362.           comma-separated list of type names (without white
  363.           space) for which the user does not desire
  364.           confirmation.     Thus, setting MM_NOASK    to
  365.           "magicmail,audio" will cause the user    not to be
  366.           asked    before running interpreters for    magicmail- or
  367.           audio-format mail, but the user will still be    asked
  368.           for all other    types.    (If the    -d command line    option
  369.           is given, MM_NOASK is    set to
  370.            1 for spawned processes, allowing -d    to work
  371.           recursively.)
  372.  
  373.       KKKKEEEEYYYYHHHHEEEEAAAADDDDSSSS
  374.           The KEYHEADS variable    may be set to a    colon-
  375.           separated list of header names, which    are the    only
  376.           headers that metamail    will print out.     By default,
  377.           the behavior is as if    KEYHEADS were set to:
  378.  
  379.           Date:From:Subject:To:CC:Content-Description
  380.  
  381.           If KEYHEADS is set to    the empty string, no header
  382.           are printed out.  If it is set to an asterisk    ("*"),
  383.           all headers are printed out.    KKKKEEEEYYYYIIIIGGGGNNNNHHHHEEEEAAAADDDDSSSS The
  384.           KEYIGNHEADS variable may be set to a colon-separated
  385.           list of header names,    which are the headers that
  386.           metamail will    not print out. This variable is    only
  387.           examined if KEYHEADS is not set.
  388.  
  389.           If KEYIGNHEADS is set    to the empty string, all
  390.  
  391.  
  392.  
  393.      Page 6                          (printed 5/3/99)
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.      MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))      BBBBeeeellllllllccccoooorrrreeee PPPPrrrroooottttoooottttyyyyppppeeee ((((RRRReeeelllleeeeaaaasssseeee 2222))))       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))
  401.  
  402.  
  403.  
  404.           headers are printed out.  If it is set to an
  405.           asterisk ("*"), no headers will be printed out.
  406.  
  407.       MMMMMMMM____NNNNOOOOTTTTTTTTTTTTYYYY
  408.           If MM_NOTTTY is set to any nonzero value, metamail
  409.           will assume that it is not running in    a terminal
  410.           window.  MM_NOTTTY implies setting MM_NOASK to 1.
  411.           If -z    is given, MM_NOTTTY is set for spawned
  412.           processes, allowing -z to work recursively.
  413.  
  414.       MMMMAAAAIIIILLLLCCCCAAAAPPPPSSSS
  415.           This variable    can be used to override    the default
  416.           path search for mailcap files.
  417.  
  418.       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL____PPPPAAAAGGGGEEEERRRR
  419.           If set, this variable    overrides "more" as the    name
  420.           of the program to run    to paginate output from    an
  421.           interpreter, when pagination has been    requested.
  422.           Note that the    normal "PAGER" variable    is not used
  423.           because many pagers (notably the "less" pager)
  424.           interfere with the workings of termcap-based mail
  425.           viewers.
  426.  
  427.       NNNNOOOOMMMMEEEETTTTAAAAMMMMAAAAIIIILLLL
  428.           This variable    is not actually    used by    metamail, but
  429.           is used by most metamail-compatible mail reading
  430.           interfaces.  If NOMETAMAIL is    set to any value, most
  431.           mail reading interfaces will never call the metamail
  432.           program, effectively inhibiting all multimedia
  433.           functionality.
  434.  
  435.       MMMMMMMM____DDDDEEEEBBBBUUUUGGGG
  436.           If MM_DEBUG is set to    any value, metamail will
  437.           produce slightly more    verbose    output to tell what it
  438.           is doing.
  439.  
  440.       MMMMMMMM____QQQQUUUUIIIIEEEETTTT
  441.           If this variable is set to "1", metamail will
  442.           produce even less output than    usual.    In particular,
  443.           it will suppress the "Executing..." line unless
  444.           MM_DEBUG is set.
  445.  
  446.           Otherwise, this variable can be set to a comma-
  447.           separated list of short commands, and    the
  448.           "Executing..." line will be suppressed for those
  449.           commands only.
  450.  
  451.           The default setting for MM_QUIET is "cat", which
  452.           means    that the "Executing..."    line is    printed    for
  453.           all commands executed    except "cat".  This makes text
  454.           support look more natural without sacrificing    an
  455.           understanding    of what    is going on in more complex
  456.  
  457.  
  458.  
  459.      Page 7                          (printed 5/3/99)
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.      MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))      BBBBeeeellllllllccccoooorrrreeee PPPPrrrroooottttoooottttyyyyppppeeee ((((RRRReeeelllleeeeaaaasssseeee 2222))))       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))
  467.  
  468.  
  469.  
  470.           circumstances.
  471.  
  472.       MMMMMMMM____YYYYAAAANNNNKKKKMMMMOOOODDDDEEEE
  473.           Setting this variable    to a non-zero value has    the
  474.           same    effect as the -y switch.  Be sure to read the
  475.           caveats attached to the description of -y before you
  476.           use it. Basically, the only time you would set
  477.           MM_YANKMODE is in order to re-enter a    mail reader in
  478.           which    you can't control the way metamail is called,
  479.           just to read a single    rejected MIME message that was
  480.           rejected by a    mail agent that    does not understand
  481.           MIME.     In such cases,    you should read    that message,
  482.           exit,    and unset this variable.
  483.  
  484.       MMMMMMMM____TTTTRRRRAAAANNNNSSSSPPPPAAAARRRREEEENNNNTTTT
  485.           If this variable is set, metamail will reproduce the
  486.           entire raw message on    stdout,    and will open up a new
  487.           terminal emulator window in which to do something
  488.           more intelligent.  This option supports certain
  489.           brain-dead mail readers, such    as mailtool, that
  490.           actually depend on the output    of the UNIX "Mail"
  491.           program being    the same as the    raw message in the
  492.           database.
  493.  
  494.       MMMMMMMM____CCCCHHHHAAAARRRRSSSSEEEETTTT
  495.           If this variable is set, it will suppress the
  496.           printing of character    set declarations when mail
  497.           headers being    printed    contain    text in    this character
  498.           set.    For example, if    you set    MM_CHARSET to "iso-
  499.           8859-8", it will suppress warnings when header
  500.           output is produced in    that character set.
  501.  
  502.       DDDDIIIISSSSPPPPLLLLAAAAYYYY Used to create a terminal window under the X11
  503.           window system.
  504.  
  505.       WWWWIIIINNNNDDDDOOOOWWWW____PPPPAAAARRRREEEENNNNTTTT
  506.           Used to create a terminal window under the SunTools
  507.           window system.
  508.  
  509.       WWWWMMMMHHHHOOOOSSSSTTTT  Used to create a terminal window under the old
  510.           Andrew WM window system.
  511.  
  512.      IIIINNNNTTTTEEEERRRRPPPPRRRREEEETTTTEEEERRRR EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT
  513.       When metamail    calls an interpreter specified in a mailcap
  514.       file,    it sets    several    environment variables which can    be
  515.       used by the interpreter if desired:
  516.  
  517.       MMMMMMMM____HHHHEEEEAAAADDDDEEEERRRRSSSS
  518.           This variable    is set to the full set of RFC822
  519.           headers, if any.
  520.  
  521.       MMMMMMMM____MMMMAAAAIIIILLLLEEEERRRR
  522.  
  523.  
  524.  
  525.      Page 8                          (printed 5/3/99)
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.      MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))      BBBBeeeellllllllccccoooorrrreeee PPPPrrrroooottttoooottttyyyyppppeeee ((((RRRReeeelllleeeeaaaasssseeee 2222))))       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))
  533.  
  534.  
  535.  
  536.           This variable    is set to the name of the mailer that
  537.           called metamail, if the -m option was    used.
  538.  
  539.       MMMMMMMM____CCCCOOOONNNNTTTTEEEENNNNTTTTTTTTYYYYPPPPEEEE
  540.           This variable    is set to the content type, as named
  541.           by the Content-type header or    passed in via the -c
  542.           option.  If the content-type has a subtype and
  543.           parameters, these are    also included in
  544.           MM_CONTENTTYPE, e.g. "multipart/mixed;
  545.           boundary=foobar".
  546.  
  547.       MMMMMMMM____SSSSUUUUMMMMMMMMAAAARRRRYYYY
  548.           This variable    is set to an efficient one-line
  549.           "caption" of the message, typically including    its
  550.           sender and subject.
  551.  
  552.       MMMMMMMM____UUUUSSSSEEEEPPPPAAAAGGGGEEEERRRR
  553.           This variable    is set to a non-zero if    the use    of a
  554.           pager    has been requested for long output (e.g. the
  555.           -p switch was    given.)     If -p is given, MM_USEPAGER
  556.           is set for spawned processes,    allowing -p to work
  557.           recursively.    This option cannot be used with    -B.
  558.  
  559.       TTTTEEEERRRRMMMMIIIINNNNAAAALLLL____CCCCMMMMDDDD
  560.           This variable    may be set to a    string that is used to
  561.           start    a new terminal window if necessary.  The
  562.           command to be    executed in that window    will be
  563.           APPENDED to this command.  By    default, this is set
  564.           to something    like "xterm -e"    if DISPLAY is set, or
  565.           "shelltool" if WINDOW_PARENT is set.    Users of Sun's
  566.           OpenWindows may wish to set TERMINAL_CMD to
  567.           "shelltool" if they prefer shelltool over xterm.
  568.  
  569.       MMMMMMMM____RRRRUUUUNNNNAAAASSSSRRRROOOOOOOOTTTT
  570.           If set to a non-zero variable, this will allow the
  571.           metamail program to be run by    root, the same effect
  572.           as the "-r" switch to    metamail.
  573.  
  574.      FFFFIIIILLLLEEEESSSS
  575.       $HOME/.mailcap:/etc/mailcap:/usr/etc/mailcap:/usr/local/etc/mailcap
  576.       -- default path for mailcap files.
  577.  
  578.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  579.       audiocompose(1), audiosend(1), ezview(1), getfilename(1),
  580.       mailto-hebrew(1), mailto(1), metasend(1), mmencode(1),
  581.       richtext(1), showaudio(1), showexternal(1), shownonascii(1),
  582.       showpartial(1), showpicture(1), mailcap(4)
  583.  
  584.      BBBBUUUUGGGGSSSS
  585.       In a multipart/alternative body or body parts, some headers
  586.       in the embedded part that should be displayed    may not    be
  587.       displayed.  This will    rarely be a problem.  Also, in a
  588.  
  589.  
  590.  
  591.      Page 9                          (printed 5/3/99)
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.      MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))      BBBBeeeellllllllccccoooorrrreeee PPPPrrrroooottttoooottttyyyyppppeeee ((((RRRReeeelllleeeeaaaasssseeee 2222))))       MMMMEEEETTTTAAAAMMMMAAAAIIIILLLL((((1111))))
  599.  
  600.  
  601.  
  602.       multipart/alternative, anything of type "multipart" or
  603.       "message" is considered to be    a recognized part, regardless
  604.       of the recognizability of its    contents.  This    might be a
  605.       problem, only    further    experience will    tell.
  606.  
  607.       The "textualnewlines"    field in mailcap entries affects a
  608.       global table of exceptions.  This means that if there    is
  609.       more than one    mailcap    entry for a given content-type,    and
  610.       they have conflicting    "textualnewlines" settings, the    wrong
  611.       value    may be used.  I    have been unable to conceive of    a
  612.       situation where this would be    a real problem,    because    it
  613.       seems    inconceivable that a single content-type would ever
  614.       require newlines to be treated in two    different ways,
  615.       regardless of    the environment.
  616.  
  617.       The "%n" and "%F" mailcap fields do not work in "test"
  618.       clauses, because metamail does not perform sufficient
  619.       lookahead to do this right.
  620.  
  621.      CCCCOOOOPPPPYYYYRRRRIIIIGGGGHHHHTTTT
  622.       Copyright (c)    1991 Bell Communications Research, Inc.
  623.       (Bellcore)
  624.  
  625.       Permission to    use, copy, modify, and distribute this
  626.       material for any purpose and without fee is hereby granted,
  627.       provided that    the above copyright notice and this permission
  628.       notice appear    in all copies, and that    the name of Bellcore
  629.       not be used in advertising or    publicity pertaining to    this
  630.       material without the specific, prior written permission of
  631.       an authorized    representative of Bellcore.  BELLCORE MAKES NO
  632.       REPRESENTATIONS ABOUT    THE ACCURACY OR    SUITABILITY OF THIS
  633.       MATERIAL FOR ANY PURPOSE.  IT    IS PROVIDED "AS    IS", WITHOUT
  634.       ANY EXPRESS OR IMPLIED WARRANTIES.
  635.  
  636.      AAAAUUUUTTTTHHHHOOOORRRR
  637.       Nathaniel S. Borenstein
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.      Page 10                          (printed 5/3/99)
  658.  
  659.  
  660.  
  661.